package com.boonya.spring.dao;

import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName: UserDao
 * @Description: TODO(功能说明)
 * @author: pengjunlin
 * @motto: 学习需要毅力，那就秀毅力
 * @date 2021/3/28 13:49
 */
public class UserDao extends JdbcDaoSupport {

    public List findPage() {
        return super.getJdbcTemplate().queryForList("select * from users");
    }
}
